/**
* SECTION:gtkmenubutton
- * @Short_description: A widget that shows a menu when clicked on
- * @Title: GtkMenuButton
+ * @short_description: A widget that shows a menu when clicked on
+ * @title: GtkMenuButton
*
* The #GtkMenuButton widget is used to display a menu when clicked on.
* This menu can be provided either as a #GtkMenu, or an abstract #GMenuModel.
static void
gtk_menu_button_set_property (GObject *object,
- guint property_id,
- const GValue *value,
- GParamSpec *pspec)
+ guint property_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GtkMenuButton *self = GTK_MENU_BUTTON (object);
static void
gtk_menu_button_get_property (GObject *object,
- guint property_id,
- GValue *value,
- GParamSpec *pspec)
+ guint property_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GtkMenuButtonPrivate *priv = GTK_MENU_BUTTON (object)->priv;
}
static void
-menu_position_down_func (GtkMenu *menu,
- int *x,
- int *y,
- gboolean *push_in,
- GtkMenuButton *menu_button)
+menu_position_down_func (GtkMenu *menu,
+ gint *x,
+ gint *y,
+ gboolean *push_in,
+ GtkMenuButton *menu_button)
{
GtkMenuButtonPrivate *priv = menu_button->priv;
GtkWidget *widget = GTK_WIDGET (menu_button);
}
static void
-menu_position_up_func (GtkMenu *menu,
- gint *x,
- gint *y,
- gboolean *push_in,
- GtkMenuButton *menu_button)
+menu_position_up_func (GtkMenu *menu,
+ gint *x,
+ gint *y,
+ gboolean *push_in,
+ GtkMenuButton *menu_button)
{
GtkMenuButtonPrivate *priv = menu_button->priv;
GtkWidget *widget = GTK_WIDGET (menu_button);
}
static void
-menu_position_side_func (GtkMenu *menu,
- int *x,
- int *y,
- gboolean *push_in,
- GtkMenuButton *menu_button)
+menu_position_side_func (GtkMenu *menu,
+ gint *x,
+ gint *y,
+ gboolean *push_in,
+ GtkMenuButton *menu_button)
{
GtkMenuButtonPrivate *priv = menu_button->priv;
GtkAllocation toggle_allocation;
}
static gboolean
-gtk_menu_button_button_press_event (GtkWidget *widget,
- GdkEventButton *event)
+gtk_menu_button_button_press_event (GtkWidget *widget,
+ GdkEventButton *event)
{
if (event->button == GDK_BUTTON_PRIMARY)
{
* when the pop-up menu disappears.
*/
static int
-menu_deactivate_cb (GtkMenuShell *menu_shell,
+menu_deactivate_cb (GtkMenuShell *menu_shell,
GtkMenuButton *menu_button)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (menu_button), FALSE);
*/
void
gtk_menu_button_set_menu_model (GtkMenuButton *menu_button,
- GMenuModel *menu_model)
+ GMenuModel *menu_model)
{
GtkMenuButtonPrivate *priv;
GtkWidget *menu;
*/
void
gtk_menu_button_set_align_widget (GtkMenuButton *menu_button,
- GtkWidget *align_widget)
+ GtkWidget *align_widget)
{
GtkMenuButtonPrivate *priv;